using System;
using NodeCanvas.Variables;
using UnityEngine;

namespace NodeCanvas.Actions
{
	[Obsolete("Use Get Property instead")]
	[Category("GameObject")]
	[AgentType(typeof(Transform))]
	public class GetGameObjectPosition : ActionTask
	{
		public BBVector saveAs = new BBVector
		{
			blackboardOnly = true
		};

		protected override string info
		{
			get
			{
				return "Get " + base.agentInfo + " position as " + saveAs;
			}
		}

		protected override void OnExecute()
		{
			saveAs.value = base.agent.transform.position;
			EndAction();
		}
	}
}
